<template>
  <div>
    <div class="son">
      <h1>我是子组件1</h1>
      <button @click="clickHandler">我是自定义事件触发的手段</button>
      <SunZi></SunZi>
    </div>
  </div>
</template>

<script>
import SunZi from '@/components/SunZi'
export default {
  name: "",
  components:{
      SunZi,
  },
  methods: {
    clickHandler() {
        this.$emit('daju','给你一百亿元','白做梦了')
    },
  },
};
</script>

<style scoped>
.son {
  width: 400px;
  height: 200px;
  background: yellowgreen;
  margin: 50px;
}
</style>